import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
//自定义ElementUI主题 self define ElementUi theme
//若你启用了以下自定义主题请注释 import 'element-ui/lib/theme-chalk/index.css'，否则打开
import '@/commons/global.scss'
import '@/commons/style.scss'
//导入图标库
import '@/statics/defaultIcons/iconfont.css'
import axios from '@/request/axios'
//导入axios 若使用API管理规范形式请注释
// import service from '@/request/axios/index'

import {getToken,setToken,removeToken} from './utils/auth'

//导入自定义指令
Vue.prototype.$getToken = getToken
Vue.prototype.$setToken = setToken
Vue.prototype.$removeToken = removeToken
Vue.prototype.$axios = axios

//UI
Vue.use(ElementUI)
//设置axios绑定为全局$http 若使用API管理规范形式请注释
// Vue.prototype.$http = service
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
